package com.heima.apis.article;

import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * ${describe}
 *拿到服务器的地址
 * feign 的实现原理，模拟浏览器发送http请求
 * @Name IArticleClient
 * @Author 刘旭
 * @Date 2022-08-31 16:48
 */
@FeignClient("leadnews-article")
public interface IArticleClient {
    @PostMapping("/api/v1/article/save")
    public ResponseResult saveArticle(@RequestBody ArticleDto dto);
}
